/*
 * 文件名：WeXinMsgDto.java
 * 版权：© Copyright 2012-2018 广州宝锶信息技术有限公司
 * 创建人：曾毅
 * 创建时间：2017年5月5日 下午4:30:50
 * 修改人：
 * 修改时间：
 * 需改内容：
 * 
 */
package com.baothink.weichat.dto.base;


/**
 * 微信发送消息参数基础DTO
 * 
 * @author  曾毅
 * @version 1.0，2017年5月5日 下午4:30:50
 * @since   ASSCWeb1.0
 */
public abstract class WeichatMsgBaseDto<T extends AWeichatMsgTypeContent> {
    
    private String touser;//
    private String toparty;
    private String totag;
    private String msgtype;
    private String agentid;
    private int safe=0;
    
    public WeichatMsgBaseDto(){}
    
    public abstract void confirmMsgType(T t);
    
    public String getTouser() {
        return this.touser;
    }
    
    public void setTouser(String touser) {
        this.touser = touser;
    }
    
    public String getToparty() {
        return this.toparty;
    }
    
    public void setToparty(String toparty) {
        this.toparty = toparty;
    }
    
    public String getTotag() {
        return this.totag;
    }
    
    public void setTotag(String totag) {
        this.totag = totag;
    }
    
    public String getMsgtype() {
        return this.msgtype;
    }
    
    public void setMsgtype(String msgtype) {
        this.msgtype = msgtype;
    }
    
    public String getAgentid() {
        return this.agentid;
    }
    
    public void setAgentid(String agentid) {
        this.agentid = agentid;
    }
    
    public int getSafe() {
        return this.safe;
    }
    
    public void setSafe(int safe) {
        this.safe = safe;
    }
    
    public static class WeXinMsgResponseDto{
        
        private int errcode;//
        private String errmsg;//
        private String invaliduser;//
        private String invalidparty;//
        private String invalidtag;//
        
        public WeXinMsgResponseDto(){}
        
        public WeXinMsgResponseDto(int errcode, String errmsg, String invaliduser, String invalidparty, String invalidtag) {
            super();
            this.errcode = errcode;
            this.errmsg = errmsg;
            this.invaliduser = invaliduser;
            this.invalidparty = invalidparty;
            this.invalidtag = invalidtag;
        }

        public int getErrcode() {
            return this.errcode;
        }
        
        public void setErrcode(int errcode) {
            this.errcode = errcode;
        }
        
        public String getErrmsg() {
            return this.errmsg;
        }
        
        public void setErrmsg(String errmsg) {
            this.errmsg = errmsg;
        }
        
        public String getInvaliduser() {
            return this.invaliduser;
        }
        
        public void setInvaliduser(String invaliduser) {
            this.invaliduser = invaliduser;
        }
        
        public String getInvalidparty() {
            return this.invalidparty;
        }
        
        public void setInvalidparty(String invalidparty) {
            this.invalidparty = invalidparty;
        }
        
        public String getInvalidtag() {
            return this.invalidtag;
        }
        
        public void setInvalidtag(String invalidtag) {
            this.invalidtag = invalidtag;
        }

        @Override
        public String toString() {
            return "WeXinMsgResponseDto [errcode=" + this.errcode + ", errmsg=" + this.errmsg + ", invaliduser=" + this.invaliduser
                   + ", invalidparty=" + this.invalidparty + ", invalidtag=" + this.invalidtag + "]";
        }
        
        
    }
}
